public class State
  {
  private String label;
  private boolean accepting;
  public State(String l)
    {
    label=l;
    }
  public State()
    {
    label="";
    }
  public void setAccepting(boolean f)
    {
    accepting=f;
    }
  public boolean isAccepting()
    {
    return accepting;
    }
  public void setLabel(String label)
    {
    this.label=label;
    }
  public String getLabel()
    {
    return label;
    }
  public String toString()
    {
    return getLabel();
    }
  public void changeAccepting()
    {
    accepting=!accepting;
    }
  }
